package com.ktjy.ktmall.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktjy.common.annotation.Excel;
import com.ktjy.common.core.domain.BaseEntity;

/**
 * 轮播图信息对象 t_banner
 *
 * @author ktjy
 * @date 2025-01-13
 */
@Data
@TableName("t_banner")
public class Banner extends BaseEntity {
private static final long serialVersionUID=1L;

        /** 轮播图编号 */
            @TableId(value = "id" , type = IdType.AUTO)
        private Long id;

        /** 轮播图 */
                @Excel(name = "轮播图")
            @TableField(value = "img_url")
        private String imgUrl;

        /** 跳转链接 */
                @Excel(name = "跳转链接")
            @TableField(value = "href_url")
        private String hrefUrl;

        /** 跳转类型 */
                @Excel(name = "跳转类型")
            @TableField(value = "type")
        private Long type;

        /** 是否启用 */
                @Excel(name = "是否启用")
            @TableField(value = "enabled")
        private Long enabled;


@Override
public String toString(){
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("id" ,getId())
        .append("imgUrl" ,getImgUrl())
        .append("hrefUrl" ,getHrefUrl())
        .append("type" ,getType())
        .append("enabled" ,getEnabled())
        .append("createTime" ,getCreateTime())
        .append("updateTime" ,getUpdateTime())
        .append("createBy" ,getCreateBy())
        .append("updateBy" ,getUpdateBy())
        .append("remark" ,getRemark())
            .toString();
}
        }